package com.sdp.wx.db.wx_assets_emergency.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wx_assets_emergency")
public class WxAssetsEmergency extends Model<WxAssetsEmergency> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId("key_id")
    @TableField("key_id")
    private String keyId;

    /**
     * 单位
     */
    @TableField("org_no")
    private String orgNo;

    /**
     * 物资名称
     */
    @TableField("wz_name")
    private String wzName;

    /**
     * 物资数量
     */
    @TableField("wz_num")
    private BigDecimal wzNum;

    /**
     * 物资规格
     */
    @TableField("wz_type")
    private String wzType;

    /**
     * 物资单价
     */
    @TableField("wz_price")
    private BigDecimal wzPrice;

    /**
     * 合计
     */
    @TableField("total_money")
    private BigDecimal totalMoney;

    /**
     * 购买日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField("buy_date")
    private LocalDate buyDate;

    /**
     * 生成时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
